/**
 * @link https://echarts.apache.org/examples
 */

/**
 *  折线图数据类型
 */
export type LineChartType = {
    type: "line-chart",
    view?: 'line' | 'bar'
    title?: string,
    smooth?: boolean,
    solid?: boolean
    labels: Array<string>,
    values: Array<number>,
    unit?: string
}


/**
 * 多折线图
 */
export type PolylineType = {
    type: "polyline-category",
    title?: string,
    solid?: boolean
    legend: string[],
    labels: string[],
    values: Array<number[]>
}

/**
 * 饼图数据类型
 */
export type PieChartType = {
    type: "pie-chart",
    title?: string,
    values: Array<{ value: number, name: string }>
}


/**
 * 漏斗图数据类型
 */
export type FunnelChartType = {
    type: "funnel-chart",
    title?: string,
    values: Array<{ value: number, name: string }>
}


/**
 * 图表联合类型
 */
export type ChartType = LineChartType | PieChartType | PolylineType | FunnelChartType